﻿using Polly;
using System;
namespace HBKY.Shop.Common.PollyHelper.PollyAttribute
{
    /// <summary>
    /// 服务熔断降级重试特性
    /// </summary>
    public abstract class PollyRetryAttribute : Attribute
    {
        /// <summary>
        /// 排序字段
        /// </summary>
        public int Order = 0;
        
        /// <summary>
        /// 实现方法
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        public abstract Action<ISyncPolicy> Do(Action<ISyncPolicy> action);
    }
}
